package com.wenda.homeschooedu.model;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 教师类
 * _id :教师编号
 * name:教师姓名
 * subjectName : 教授课程的名字（如：语文，数学，英语）
 * phone : 教师电话
 * userName:教室用户名
 * @author Administrator
 *
 */
@Entity
@Table(name="teacher")
public class Teacher extends BaseModel{
	/**
	 * 
	 */
	private static final long serialVersionUID = -8482823503898024969L;
	private int _id;
	private String name;
	private String subjectName;
	private String phone;
	private String userName;

	public int get_id() {
		return _id;
	}

	public void set_id(int _id) {
		this._id = _id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSubjectName() {
		return subjectName;
	}

	public void setSubjectName(String subjectName) {
		this.subjectName = subjectName;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Teacher(int _id, String name, String subjectName, String phone,
			String userName) {
		super();
		this._id = _id;
		this.name = name;
		this.subjectName = subjectName;
		this.phone = phone;
		this.userName = userName;
	}

	@Override
	public String toString() {
		return "Teacher [_id=" + _id + ", name=" + name + ", subjectName="
				+ subjectName + ", phone=" + phone + ", userName=" + userName
				+ "]";
	}

}
